// 自动生成模板WmsPurchase
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// wmsPurchase表 结构体  WmsPurchase
type WmsPurchase struct {
	Id           *int       `json:"id" form:"id" gorm:"primarykey;column:id;size:19;"`                      //id字段
	AssigneeId   *int       `json:"assigneeId" form:"assigneeId" gorm:"column:assignee_id;size:19;"`        //assigneeId字段
	AssigneeName *string    `json:"assigneeName" form:"assigneeName" gorm:"column:assignee_name;size:255;"` //assigneeName字段
	Phone        *string    `json:"phone" form:"phone" gorm:"column:phone;"`                                //phone字段
	Priority     *int       `json:"priority" form:"priority" gorm:"column:priority;size:10;"`               //priority字段
	Status       *int       `json:"status" form:"status" gorm:"column:status;size:10;"`                     //status字段
	WareId       *int       `json:"wareId" form:"wareId" gorm:"column:ware_id;size:19;"`                    //wareId字段
	Amount       *float64   `json:"amount" form:"amount" gorm:"column:amount;size:18;"`                     //amount字段
	CreateTime   *time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;"`                //createTime字段
	UpdateTime   *time.Time `json:"updateTime" form:"updateTime" gorm:"column:update_time;"`                //updateTime字段
}

// TableName wmsPurchase表 WmsPurchase自定义表名 wms_purchase
func (WmsPurchase) TableName() string {
	return "wms_purchase"
}

type WmsPurchaseRepo interface {
}

type WmsPurchaseUsecase struct {
	repo WmsPurchaseRepo
	log  *log.Helper
}

func NewWmsPurchaseUsecase(repo GreeterRepo, logger log.Logger) *WmsPurchaseUsecase {
	return &WmsPurchaseUsecase{repo: repo, log: log.NewHelper(logger)}
}
